package com.wwwarehouse.usercenter.common;

import com.wwwarehouse.common.common.Common;

import java.io.File;
import java.math.BigDecimal;

/**
 * @创建者 chenchao.
 * @创建时间 2017/9/4 14:23
 * @描述 ${TODO}
 */

public class UserCenterCommon {
    private static UserCenterCommon instance;

    // 获取单例
    public static UserCenterCommon getInstance() {
        synchronized (Common.class) {
            if (instance == null) {
                instance = new UserCenterCommon();
            }
        }

        return instance;
    }

    //保存注册信息
    private String birthPlace;
    private String birthday;
    private String deviceInfo;
    private String deviceMac;
    private String deviceToken;
    private String deviceType;
    private String disabilitySituation;
    private String email;
    private String expirationDate;
    private String eyesight;
    private String face;
    private BigDecimal height;
    private String idBack;
    private String idCard;
    private String idFront;
    private String idHeader;
    private String inviteCode;
    private String mobile;
    private String nation;
    private String password;
    private String personName;
    private String personSex;
    private String unionId;
    private String userAccount;
    private BigDecimal weight;


    //不是传给后台的参数
    private String cutHead;
    private String passwordCanSee;//用来保存回显的密码
    private boolean isWeek;//是否残疾
    private boolean isSubmit;
    private String  absolutePath;

    //表明是否完成
    private boolean isSystemServiceActivity;
    private boolean isRCInviteCodeFragment;
    private boolean isRCRealNameAuthStep2Fragment;
    private boolean isShootHead;
    private boolean isRCUserNamePasswordFragment;
    private boolean isRCBindingFragment;
    private boolean isFingerUnlockSettingsFragment;
    private boolean isEnterEmployeeDataFragment;

    //实名认证的图片
    private File mFrontPhotoFile;
    private File mBackPhotoFile;

    public void setAllRegisterNull(){
        birthPlace = null;
        birthday= null;
        deviceInfo= null;
        deviceMac= null;
        deviceToken= null;
        deviceType= null;
        disabilitySituation= null;
        email= null;
        expirationDate= null;
        eyesight= null;
        face= null;
        height= null;
        idBack= null;
        idCard= null;
        idFront= null;
        idHeader= null;
        inviteCode= null;
        mobile= null;
        nation= null;
        password= null;
        personName= null;
        personSex= null;
        unionId= null;
        userAccount= null;
        weight= null;
        cutHead=null;
        passwordCanSee = null;
        isWeek=false;
        isSubmit=false;
        absolutePath = null;
        isSystemServiceActivity=false;
        isRCInviteCodeFragment=false;
        isRCRealNameAuthStep2Fragment=false;
        isShootHead=false;
        isRCUserNamePasswordFragment=false;
        isRCBindingFragment=false;
        isFingerUnlockSettingsFragment=false;
        isEnterEmployeeDataFragment=false;
        mFrontPhotoFile = null;
        mBackPhotoFile = null;
    }
    public File getFrontPhotoFile() {
        return mFrontPhotoFile;
    }

    public void setFrontPhotoFile(File frontPhotoFile) {
        mFrontPhotoFile = frontPhotoFile;
    }

    public File getBackPhotoFile() {
        return mBackPhotoFile;
    }

    public void setBackPhotoFile(File backPhotoFile) {
        mBackPhotoFile = backPhotoFile;
    }

    public boolean isSystemServiceActivity() {
        return isSystemServiceActivity;
    }

    public void setSystemServiceActivity(boolean systemServiceActivity) {
        isSystemServiceActivity = systemServiceActivity;
    }

    public boolean isRCInviteCodeFragment() {
        return isRCInviteCodeFragment;
    }

    public void setRCInviteCodeFragment(boolean RCInviteCodeFragment) {
        isRCInviteCodeFragment = RCInviteCodeFragment;
    }

    public boolean isRCRealNameAuthStep2Fragment() {
        return isRCRealNameAuthStep2Fragment;
    }

    public void setRCRealNameAuthStep2Fragment(boolean RCRealNameAuthStep2Fragment) {
        isRCRealNameAuthStep2Fragment = RCRealNameAuthStep2Fragment;
    }

    public boolean isShootHead() {
        return isShootHead;
    }

    public void setShootHead(boolean shootHead) {
        isShootHead = shootHead;
    }

    public boolean isRCUserNamePasswordFragment() {
        return isRCUserNamePasswordFragment;
    }

    public void setRCUserNamePasswordFragment(boolean RCUserNamePasswordFragment) {
        isRCUserNamePasswordFragment = RCUserNamePasswordFragment;
    }

    public boolean isRCBindingFragment() {
        return isRCBindingFragment;
    }

    public void setRCBindingFragment(boolean RCBindingFragment) {
        isRCBindingFragment = RCBindingFragment;
    }

    public boolean isFingerUnlockSettingsFragment() {
        return isFingerUnlockSettingsFragment;
    }

    public void setFingerUnlockSettingsFragment(boolean fingerUnlockSettingsFragment) {
        isFingerUnlockSettingsFragment = fingerUnlockSettingsFragment;
    }

    public boolean isEnterEmployeeDataFragment() {
        return isEnterEmployeeDataFragment;
    }

    public void setEnterEmployeeDataFragment(boolean enterEmployeeDataFragment) {
        isEnterEmployeeDataFragment = enterEmployeeDataFragment;
    }

    public boolean isSubmit() {
        return isSubmit;
    }

    public void setSubmit(boolean submit) {
        isSubmit = submit;
    }
    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public boolean getIsWeek() {
        return isWeek;
    }

    public void setWeek(boolean week) {
        isWeek = week;
    }

    public String getPasswordCanSee() {
        return passwordCanSee;
    }

    public void setPasswordCanSee(String passwordCanSee) {
        this.passwordCanSee = passwordCanSee;
    }
    public String getCutHead() {
        return cutHead;
    }

    public void setCutHead(String cutHead) {
        this.cutHead = cutHead;
    }

    public String getBirthPlace() {
        return birthPlace;
    }

    public void setBirthPlace(String birthPlace) {
        this.birthPlace = birthPlace;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getDeviceMac() {
        return deviceMac;
    }

    public void setDeviceMac(String deviceMac) {
        this.deviceMac = deviceMac;
    }

    public String getDeviceToken() {
        return deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDisabilitySituation() {
        return disabilitySituation;
    }

    public void setDisabilitySituation(String disabilitySituation) {//EnterEmployeeDataFragment
        this.disabilitySituation = disabilitySituation;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {//RCBindingFragment
        this.email = email;
    }

    public String getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {//RCRealNameAuthStep2Fragment
        this.expirationDate = expirationDate;
    }

    public String getEyesight() {
        return eyesight;
    }

    public void setEyesight(String eyesight) {//EnterEmployeeDataFragment
        this.eyesight = eyesight;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {//EnterEmployeeDataFragment
        this.height = height;
    }

    public String getIdBack() {
        return idBack;
    }

    public void setIdBack(String idBack) {//RCRealNameAuthStep1Fragment
        this.idBack = idBack;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {//RCRealNameAuthStep1Fragment
        this.idCard = idCard;
    }

    public String getIdFront() {
        return idFront;
    }

    public void setIdFront(String idFront) {//RCRealNameAuthStep1Fragment
        this.idFront = idFront;
    }

    public String getIdHeader() {
        return idHeader;
    }

    public void setIdHeader(String idHeader) {
        this.idHeader = idHeader;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {//RCInviteCodeFragment
        this.inviteCode = inviteCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {//RCBindingFragment
        this.mobile = mobile;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {//RCUserNamePasswordFragment
        this.password = password;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonSex() {
        return personSex;
    }

    public void setPersonSex(String personSex) {//RCRealNameAuthStep2Fragment
        this.personSex = personSex;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {//WXEntryActivity
        this.unionId = unionId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {//EnterEmployeeDataFragment
        this.weight = weight;
    }
}
